]>
Commit | Line | Data |
---|---|---|
8df5f89a | 1 | # |
d1d622ab | 2 | # Conditional build: |
8dcfc624 | 3 | %bcond_without static_libs # don't build static library |
db10935c | 4 | %bcond_without tests # check target |
d1d622ab | 5 | # |
5133f76b | 6 | Summary: The Typesafe Signal Framework for C++ |
635b8004 | 7 | Summary(pl.UTF-8): Środowisko sygnałów z kontrolą typów dla C++ |
ab0420db | 8 | Name: libsigc++3 |
32b65b3f | 9 | Version: 3.0.4 |
1e5c6e05 | 10 | Release: 1 |
c27f8333 | 11 | Epoch: 1 |
3c2e80c3 | 12 | License: LGPL v2.1+ |
5133f76b | 13 | Group: Libraries |
ab0420db | 14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/3.0/libsigc++-%{version}.tar.xz |
32b65b3f | 15 | # Source0-md5: 63889b161cf61570dd704568a879882d |
13e32c2e | 16 | URL: https://libsigcplusplus.github.io/libsigcplusplus/ |
3e00d680 | 17 | BuildRequires: autoconf >= 2.59 |
f3a3158c | 18 | BuildRequires: automake >= 1:1.9 |
32b65b3f | 19 | BuildRequires: doxygen >= 1:1.8.9 |
ab0420db | 20 | BuildRequires: libstdc++-devel >= 6:7 |
1c773249 | 21 | BuildRequires: libtool >= 2:2.0 |
0764e6a0 | 22 | BuildRequires: m4 |
ab0420db | 23 | BuildRequires: mm-common >= 0.9.12 |
b02845a0 | 24 | BuildRequires: perl-base |
d33e9e7d | 25 | BuildRequires: pkgconfig |
6e5cfdbe JB |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
d0f81991 | 28 | Obsoletes: libsigc++-examples |
8deca2bf | 29 | Conflicts: libsigc++ < 1.1.0 |
b02845a0 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c014a68e | 31 | |
32 | %description | |
ae7d4fa5 | 33 | This library implements a full callback system for use in widget |
34 | libraries, abstract interfaces, and general programming. Originally | |
a4ed2849 | 35 | part of the Gtk-- widget set, libsigc++ is now a seperate library to |
ae7d4fa5 | 36 | provide for more general use. It is the most complete library of its |
37 | kind with the ablity to connect an abstract callback to a class | |
38 | method, function, or function object. It contains adaptor classes for | |
39 | connection of dissimilar callbacks and has an ease of use unmatched by | |
40 | other C++ callback libraries. | |
c014a68e | 41 | |
e1f1abbc JR |
42 | %description -l pl.UTF-8 |
43 | Ta biblioteka jest implementacją pełnego systemu callbacków do | |
44 | używania w bibliotekach widgetów, interfejsach abstrakcyjnych i | |
45 | ogólnym programowaniu. Oryginalnie była to część zestawu widgetów | |
46 | Gtk--, ale jest teraz oddzielną biblioteką ogólniejszego | |
47 | przeznaczenia. Jest to kompletna biblioteka tego typu z możliwością | |
48 | łączenia abstrakcyjnych callbacków z metodami klas, funkcjami lub | |
49 | obiektami funkcji. Zawiera klasy adapterów do łączenia różnych | |
50 | callbacków. | |
45bd5da5 | 51 | |
c014a68e | 52 | %package devel |
45bd5da5 | 53 | Summary: Development tools for the Typesafe Signal Framework for C++ |
635b8004 | 54 | Summary(pl.UTF-8): Narzędzia programistyczne do środowiska libsig++ |
5133f76b | 55 | Group: Development/Libraries |
b02845a0 | 56 | Requires: %{name} = %{epoch}:%{version}-%{release} |
ab0420db | 57 | Requires: libstdc++-devel >= 6:7 |
8deca2bf | 58 | Requires: m4 |
c014a68e | 59 | |
60 | %description devel | |
5133f76b | 61 | Development tools for the Typesafe Signal Framework for C++. |
c014a68e | 62 | |
e1f1abbc JR |
63 | %description devel -l pl.UTF-8 |
64 | Narzędzia programistyczne do środowiska libsigc++ - sygnałów z | |
65 | kontrolą typów. | |
45bd5da5 | 66 | |
5133f76b | 67 | %package static |
68 | Summary: Static Typesafe Signal Framework for C++ libraries | |
635b8004 | 69 | Summary(pl.UTF-8): Statyczna biblioteka libsigc++ |
5133f76b | 70 | Group: Development/Libraries |
b02845a0 | 71 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
c014a68e | 72 | |
5133f76b | 73 | %description static |
74 | Static Typesafe Signal Framework for C++ libraries. | |
c014a68e | 75 | |
e1f1abbc JR |
76 | %description static -l pl.UTF-8 |
77 | Statyczna biblioteka libsigc++ - środowiska sygnałów z kontrolą typów. | |
45bd5da5 | 78 | |
a5958e16 JB |
79 | %package doc |
80 | Summary: Reference documentation for libsigc++ | |
81 | Summary(pl.UTF-8): Szczegółowa dokumentacja dla libsigc++ | |
82 | Group: Documentation | |
83 | ||
84 | %description doc | |
85 | Reference documentation for libsigc++. | |
86 | ||
87 | %description doc -l pl.UTF-8 | |
88 | Szczegółowa dokumentacja dla libsigc++. | |
89 | ||
c014a68e | 90 | %prep |
ab0420db | 91 | %setup -q -n libsigc++-%{version} |
c014a68e | 92 | |
93 | %build | |
32b65b3f | 94 | mm-common-prepare --copy --force |
a09c286c | 95 | %{__libtoolize} |
f3a3158c | 96 | %{__aclocal} -I build |
d91e70f5 | 97 | %{__autoconf} |
32b65b3f | 98 | %{__autoheader} |
d91e70f5 | 99 | %{__automake} |
57120020 | 100 | %configure \ |
db10935c | 101 | --disable-silent-rules \ |
f3a3158c | 102 | %{?with_static_libs:--enable-static} |
db10935c JB |
103 | %{__make} |
104 | ||
105 | %if %{with tests} | |
106 | %{__make} check | |
107 | %endif | |
c014a68e | 108 | |
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
0764e6a0 | 111 | |
bc7295d0 | 112 | %{__make} install \ |
f864fec3 | 113 | DESTDIR=$RPM_BUILD_ROOT |
5133f76b | 114 | |
ab0420db JB |
115 | # obsoleted by pkg-config |
116 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsigc-3.0.la | |
117 | ||
c014a68e | 118 | %clean |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
45bd5da5 JB |
121 | %post -p /sbin/ldconfig |
122 | %postun -p /sbin/ldconfig | |
123 | ||
c014a68e | 124 | %files |
5133f76b | 125 | %defattr(644,root,root,755) |
ab0420db JB |
126 | %doc AUTHORS ChangeLog NEWS README.md |
127 | %attr(755,root,root) %{_libdir}/libsigc-3.0.so.*.*.* | |
128 | %attr(755,root,root) %ghost %{_libdir}/libsigc-3.0.so.0 | |
c014a68e | 129 | |
130 | %files devel | |
5133f76b | 131 | %defattr(644,root,root,755) |
ab0420db JB |
132 | %attr(755,root,root) %{_libdir}/libsigc-3.0.so |
133 | %{_includedir}/sigc++-3.0 | |
134 | %{_libdir}/sigc++-3.0 | |
135 | %{_pkgconfigdir}/sigc++-3.0.pc | |
a4ed2849 | 136 | |
8dcfc624 | 137 | %if %{with static_libs} |
5133f76b | 138 | %files static |
ae7d4fa5 | 139 | %defattr(644,root,root,755) |
ab0420db | 140 | %{_libdir}/libsigc-3.0.a |
57120020 | 141 | %endif |
3c2e80c3 JB |
142 | |
143 | %files doc | |
144 | %defattr(644,root,root,755) | |
ab0420db JB |
145 | %{_datadir}/devhelp/books/libsigc++-3.0 |
146 | %{_docdir}/libsigc++-3.0 |